<{include file="admin:common/header.html"}>
<div class="page-title">
	<table width="100%" align="center" cellpadding="0" cellspacing="0" >
		<tr>
			<td width="30" align="right"><img src="<{$pager.url}>/images/main-h5-ico.gif" alt="" /></td>
			<th><{$MOD.title}></th>
			<td align="right">
                <{link ctl="shop/shop:create" class="button" title="添加"}>&nbsp; &nbsp;
                <{link ctl="shop/shop:so" load="mini:搜索商铺" width="mini:500" class="button" title="搜索"}>
            </td>
			<td width="15"></td>
		</tr>
	</table>
</div>
<div class="page-data">	
	<form id="items-form">
    <table width="100%" border="0" cellspacing="0" class="table-data table">
    <tr>
        <th class="w-100">ID</th><th>商家名称</th><th>用户UID</th><th>城市</th><th>电话</th>
        <th>浏览数</th><th>总评分</th><th>消保</th><th>认证</th><th>审核</th><th>排序</th><th class="w-150">操作</th>
    </tr>
    <{foreach $items as $item}>
    <tr>
        <td><label><input type="checkbox" value="<{$item.shop_id}>" name="shop_id[]" CK="PRI"/><{$item.shop_id}><label></td><td><label tips="<{$item.title}>"><{$item.name}></label></td>
        <td><{if $item.uid}><a ucard="@<{$item.uid}>"><{$member_list[$item.uid].uname}>(UID:<{$item.uid}>)</a><{else}><em>未认领</em><{/if}></td>
        <td><{$city_list[$item.city_id].city_name|default:'--'}></td><td><{$item.phone}></td>
        <td><{$item.views}></td><td><{$item.score}></td><td><{$item.xiaobao}></td>
        <td><{if $item.is_vip}><b class="blue">旗舰</b>、<{/if}>
            <{if $item.verify_name}><b class="blue">实名</b>、<{/if}>
            <{if $item.xiaobao}><b class="blue">消保</b><{/if}>
        </td>
        <td><{if $item.audit}><b class="blue">正常</b><{else}><b class="red">待审</b><{/if}></td><td><{$item.orderby}></td>
        <td>
            <{if $item.uid}>
				<{link ctl="member/member:manager" args=$item.uid title="管理" class="button" target="member"}>
			<{else}>
				<label title="管理" class="button disabled" tips="未绑定用户" disabled="disabled">管理</label>
			<{/if}>
            <{link ctl="block/item:push" arg0='shop' arg1=$item.shop_id title="推送" load="mini:推送商铺" class="button"}>
            <{link ctl="shop/banner:shop" args=$item.shop_id iframe="mini:轮转《"|cat:$item.title|cat:"》" width="mini:750" title="轮转" class="button"}>
            <{link ctl="product/product:shop" arg0=$item.shop_id title="商品" class="button"}>
            <{if empty($item.is_vip)}>
             <{link ctl="shop/shop:vip" act="mini:设为旗舰商铺" args=$item.shop_id title="设为旗舰商铺" class="button"}>
             <{else}>
              <{link ctl="shop/shop:vip" act="mini:取消旗舰商铺" args=$item.shop_id title="取消旗舰商铺" class="button"}>
             <{/if}>         
            <{link ctl="shop/shop:edit" args=$item.shop_id title="修改" class="button"}>
            <{link ctl="shop/shop:delete" args=$item.shop_id act="mini:删除" confirm="mini:确定要删除吗？" title="删除" class="button"}>
        </td>
    </tr>
    <{foreachelse}>
     <tr><td colspan="20"><p class="text-align tip-notice">没有数据</p></td></tr>
    <{/foreach}>
    </table>
	</form>
	<div class="page-bar">
		<table>
			<tr>
			<td class="w-100"><label><input type="checkbox" CKA="PRI"/>&nbsp;&nbsp;全选</label></td>
			<td colspan="10" class="left">
                <{link ctl="shop/shop:delete" type="button" submit="mini:#items-form" confirm="mini:确定要批量删除选中的内容吗?" priv="hide" value="批量删除"}>
                <{link ctl="block/item:batch" args='shop' type="button" load="mini:批量推荐商铺" batch="mini:PRI" priv="hide" value="批量推荐"}>
                <{link ctl="shop/shop:doaudit" type="button" submit="mini:#items-form" confirm="mini:确定要批量审核选中的内容吗?" priv="hide" value="批量审核"}>
            </td>
			<td class="page-list"><{$pager.pagebar}></td>
		</tr>
		</table>
	</div>
</div>
<{include file="admin:common/footer.html"}>